<%@ page language="java" pageEncoding="UTF-8"
import="com.yb.util.comm.RequestUtil,com.yb.domain.member.TsSysuser,com.yb.util.comm.Contants;"
	contentType="text/html; charset=utf-8"%>
<%
	String userid = "";
	String userType = "";
	String path = request.getContextPath();
	TsSysuser tsSysuser = (TsSysuser) RequestUtil
			.getLoginUserFromSession(request, Contants.SESSION_USER);
	if (tsSysuser == null) {
		userid = "";
		userType = "";
	} else {
		userid = tsSysuser.getId().toString();
		userType = tsSysuser.getType();
	}
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${tgBrand.name}-幸福兄弟-幸福兄弟拼购网-${pcategory.name}-${category.name}-商家会员</title>
<link href="<%=basePath%>resource/css/css.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" type="image/x-icon" href="<%=basePath%>resource/img/favicon.ico" media="screen" />
<link href="<%=basePath%>resource/css/s-index.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath%>resource/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=basePath%>index/shangjia/pro.js"></script>
<script type="text/javascript" src="../index/shangjia/shangjia3.js"></script>
<script>
	var basePath = "<%=basePath%>";
	var userid = "<%=userid%>";
	var userType = "<%=userType%>";
	var initFlag = false;
</script>
<style type="text/css">
	#announcementDiv p {margin:0px;}
</style>
</head>
<body>
<div id="grayDiv" style="z-index:20;display: none;background: #ECECEC;width: 100%;height: 100%;position: absolute;filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;">
</div>
<div id="joinDiv" style="z-index:21; display: none;position: absolute;width: 1000px;height: 500px;background:url('<%=basePath %>resource/img/brand/win_bg.png');">
<div style="width: 100%;height: 50px;border-bottom: 2px solid #33A7D1;">
	<table width="100%" height="100%" border="0">
	<tr><td width="150px" style="color: #000000;font-weight: bold;font-size: 16px;padding-left: 5px;">&nbsp;</td><td style="padding-left: 20px;font-size: 15px" valign="middle">&nbsp;</td><td width="50px" align="right" valign="middle" style="font-weight: bold;padding-right:15px;cursor: pointer;" onclick="hideJoin();" title="关闭">&nbsp;&nbsp;</td></tr>
	</table>
</div>
<div style="width: 95%;border: 0px solid red;height: 448px;padding-left: 8px;" align="center">
<form target="joinFrame" style="width: 95%;" action="<%=basePath%>buyrecord/saveOrUpdate.shtml" method="post">
	<table width="95%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td
				style="padding-top: 10px; padding-left: 10px; padding-right: 10px">
				<div class="quandianping1" >
					<table width="100%">
						<tr><td style="font-weight: 600" width="100px">拼购必读：</td><td align="left"><s:if test='%{#tgBrand.announcement == null || #tgBrand.announcement == ""}'>请真实填写商家咨询了解的相关信息，如果不实而造成纠纷，后果自负。为了舒心拼购，请主动保留相关证据。</s:if><s:else>${tgBrand.announcementShort}</s:else><s:if test='%{#tgBrand.announcement != null && #tgBrand.announcement != "" && #tgBrand.announcement.length() > 50}'></td><td align="right"><span style="cursor:pointer" onclick="showAnnouncement()" id="accShow" >显示更多</span></s:if></td></tr>
					</table>
					<s:if test='%{#tgBrand.announcement != null && #tgBrand.announcement != ""}'>
					<div id="announcementDiv" style="display: none;position: absolute;background: #FFFFFF;width:835px;border: 1px solid #429DD4">${tgBrand.announcement}</div>
					</s:if>
				</div>
			</td>
		</tr>
	</table>
	<table width="80%" border="0" cellspacing="0" cellpadding="0" style="margin-top: 20px;">
		<tr>
			<td width="95" align="right">
				<div class="quandianping">
					<label for="textfield">
						真实姓名：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.name" maxlength="25"
						id="username" style="width: 200px;"/><em style="color: #F00">*</em>
				</div>
			</td>
			<td align="right">
				<div class="quandianping">
					<label for="textfield2">
						手机：
					</label>
					<input type="hidden" name="tpRecord.brandId" id="brandId" value="<s:property value="#tgBrand.id"/>" />
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.pho" maxlength="18"
						id="phone" style="width: 200px;" /><em style="color: #F00">*</em>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<div class="quandianping">
					<label for="textfield3">
						备用电话：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.tel" maxlength="18"
						id="tel" style="width: 200px;" />
				</div>
			</td>
			<td align="right">
				<div class="quandianping">
					<label for="textfield4">
						小区名称：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.address" maxlength="50"
						id="address" style="width: 200px;" /><em style="color: #F00">*</em>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<div class="quandianping">
					<label for="select">
						参加拼购时间：
					</label>
				</div>
			</td>
			<td align="left">

				<div class="quandianping">
					<input name="tpRecord.partTime2" maxlength="25" id="parttime"
						onFocus="WdatePicker({firstDayOfWeek:7,dateFmt:'yyyy-MM'})"
						class="Wdate" style="width: 200px;"/><em style="color: #F00">*</em>
				</div>
			</td>
			<td align="right">
				<div class="quandianping">
					<label for="textfield5">
						购买数量：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.buyNum" id="num"
						maxlength="5" style="width: 200px;" /><em style="color: #F00">*</em>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<div class="quandianping">
					<label for="textfield6">
						产品名称：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.proName" maxlength="100"
						id="wuname" style="width: 200px;" />
				</div>
			</td>
			<td align="right">
				<div class="quandianping">
					<label for="textfield7">
						产品型号：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.model" id="type"
						maxlength="100" style="width: 200px;" />
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<div class="quandianping">
					<label for="textfield8">
						咨询成交单价：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.price" id="xun"
						maxlength="5" style="width: 200px;"/>
				</div>
			</td>
			<td align="right">
				<div class="quandianping">
					<label for="textfield9">
						咨询成交总价：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.total" maxlength="5"
						id="xuntotal" style="width: 200px;" />
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">
				<div class="quandianping">
					<label for="textfield10">
						咨询成交折扣：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.zhekou" maxlength="4"
						id="zhekou" style="width: 200px;"/>
				</div>
			</td>
			<input type="hidden" name="tpRecord.categoryId" value="${tgBrand.categoryId} "
				id="categoryId" />
			<input type="hidden" value="<%=userid%>" id="userid" name="tpRecord.userId" />
			<input type="hidden" value="0" id="autding" name="tpRecord.autding" />
			<td align="right">
				<div class="quandianping">
					<label for="textfield11">
						咨询时间：
					</label>
				</div>
			</td>
			<td align="left">
				<div class="quandianping">
					<input type="text" name="tpRecord.queryDate" maxlength="25"
						id="time"
						onFocus="WdatePicker({firstDayOfWeek:7,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						class="Wdate" style="width: 200px;" />
				</div>
			</td>
		</tr>
	</table>
	<table width="95%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td
				style="padding-top: 10px; padding-left: 10px; padding-right: 10px">
				<div class="quandianping1">
					<em style="color: #F00">*</em>&nbsp;${tgBrand.stateMent}
				</div>
			</td>
		</tr>
		<tr>
			<td height="30px" align="center">
				<div class="tijiao">
					<input type="submit" style="display: none" id="cjpgbtn"/><a href="javascript:add();">提&nbsp;&nbsp;交&nbsp;&nbsp;</a>
				</div>
			</td>
		</tr>
	</table>
	</form>
	<div class="left3-1" align="left">
		<nobr>&nbsp;已参加<font style="font-weight: bold; padding-left: 3px; padding-right: 3px;">${tgBrand.shortName}</font>拼购的业主：</nobr>
	</div>
	<br/>
	<div class="left1111" style="width: 980px;overflow:auto;height: 105px;border: 0px solid red;" align="center">
			<div class="left1-2">
			<table width="95%" cellpadding="0" cellspacing="0">
					<s:if test="%{#memberlist == null||#memberlist.size()==0}">
							<tr ><td align="left" colspan="2" style="border-bottom: 1px dotted #C2D5E3;padding-left: 10px;">暂时没有业主参与&nbsp;&nbsp;</td></tr>
					</s:if>
					<s:iterator value="#memberlist" var="member" status="stat">
							<s:if test="%{#member.userId == #session.userinfo.id&&#member.autding == 1}">
								<s:set name="joinFlag" value="true" ></s:set>
							</s:if>
							<s:if test="%{#stat.index % 4 == 0}">
								<tr style="border-bottom: 1px solid #C2D5E3">
							</s:if>
								<td height="20px" align="left" width="50px" style="border-bottom: 1px dotted #C2D5E3;padding-left: 30px;">${member.showName}</td><td align="left" style="border-bottom: 1px dotted #C2D5E3;color: #D2A97D">参加${member.partTimeFormat}拼购</td>
							<s:if test="%{(#stat.index+1) % 4 == 0 && #stat.index > 0}">
								</tr>
							</s:if>
					</s:iterator>
				</table>
			</div>
	</div>
</div>
</div>
<!-- view start -->
<div id="joinDivM" style="z-index:21;display: none;position: absolute;width: 1000px;height: 500px;border: 0px solid #33A7D1;background:url('<%=basePath %>resource/img/brand/win_bg2.png');">
<div style="width: 100%;height: 50px;border-bottom: 2px solid #33A7D1;">
	<table width="99%" height="100%">
	<tr><td style="color: #000000;font-weight: bold;font-size: 16px;padding-left: 5px;"><span id="titleId"></span></td><td width="50px" align="right" valign="middle" style="font-weight: bold;padding-right:10px;cursor: pointer;" onclick="hideViewContent();">&nbsp;</td></tr>
	</table>
</div>
<div style="height445px; overflow: auto;" align="center" id="viewmessage">
	
</div>
</div>
<!-- view end -->

<!--  -->
<div id="evaluateDiv" style="z-index:22;display: none;position: absolute;width: 1000px;height: 500px;border: 0px solid #33A7D1;background:url('<%=basePath %>resource/img/brand/win_bg2.png');">
<div style="width: 100%;height: 50px;border-bottom: 2px solid #33A7D1;">
	<table width="99%" height="100%">
	<tr><td style="color: #000000;font-weight: bold;font-size: 16px;padding-left: 5px;">对${tgBrand.name}进行评价</td><td width="50px" align="right" valign="middle" style="font-weight: bold;padding-right:10px;cursor: pointer;" onclick="hideEvaluate();">&nbsp;</td></tr>
	</table>
</div>
<div style="height445px; overflow: auto;" align="center" >
<form name="form1" target="pingjiaFrame" method="post" action="../pingjia/saveOrUpdate.shtml" >
	<table width="70%" cellpadding="0" cellspacing="5">
	<tr>
		<td align="right" width="15%" class="quandianping1" style="text-align: right;">
					评价：
		</td>
		<td align="left">
				<select name="pg.type" id="pgtype">
					<option value="-1" selected="selected">
						-请选择-
					</option>
					<option value="1">
						好评
					</option>
					<option value="2">
						差评
					</option>
				</select>
				<em style="color: #F00">*</em>
		</td>
	</tr>
	<tr>
		<td align="right" class="quandianping1" style="text-align: right;">
					标题：
		</td>
		<td align="left">
				<input type="text" name="pg.title" id="title" />
				<em style="color: #F00">*</em>
		</td>
	</tr>
	<tr>
		<td align="right" valign="middle" class="quandianping1" style="text-align: right;">
					内容：
		</td>
		<td align="left">
			<div class="quandianping">
				<textarea name="pg.content" style="width: 500px" rows="10" id="pgcontent"></textarea>
				<br />
			</div>
		</td>
	</tr>
	<tr>
		<td colspan="2" >
				<input name="pg.yeId" id="yeId" value="<%=userid %>" type="hidden"/>
				<input name="pg.pjtype" id="pjtype" value="1" type="hidden"/>
				<input name="pg.brandId" id="brandId" type="hidden" value="${tgBrand.id}"/>
				<input type="submit" name="button" style="display: none;" id="pjbu"/>
				<input type="button" onclick="pingjia();" name="button" id="button" value="提交"/>
		</td>
	</tr>
	</table>
	</form>
</div>
</div>


<div id="top-bg">
			<div id="nav" align="center">
				<table width="1000" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td
							style="background: url(../resource/img/index/sh-1.jpg) no-repeat; height: 39px; width: 11px">
							&nbsp;
						</td>
						<td width="982"
							style="background: url(../resource/img/index/sh-2.jpg) repeat-x; line-height: 33px">
							<table width="100%" cellpadding="0" cellspacing="0">
							<tr><td align="left">
							<div id="nav-1" align="left">
								<a href="<%=basePath%>home.shtml">首页</a> &gt;
								<a
									href="<%=basePath%>showCategory.shtml?categoryId=${category.id}&pid=${pcategory.id}">${pcategory.name}</a>
								&gt;
								<a
									href="<%=basePath%>showCategory.shtml?categoryId=${category.id}&pid=${pcategory.id}">${category.name}</a>
								&gt;
								<a href="#">${tgBrand.name}</a>
							</div>
							</td><td align="right">
							<%
								if (null == tsSysuser) {
							%>
							<div class="top-1-right">
								欢迎登录幸福兄弟拼购网！ |
								<a href="<%=basePath%>login.html" target="_top" title="登录">登录</a>
								|
								<a href="<%=basePath%>user/goForWordRegister.shtml"
									target="_top" title="免费注册">免费注册</a> |&nbsp;&nbsp;
							</div>
							<%
								} else {
							%>
							<div class="top-1-right">
								欢迎<%=tsSysuser.getUsername()%>登录幸福兄弟拼购网！ |
								<a href="<%=basePath%>loginsuccess.jsp" target="_top"
									title="个人管理">个人管理</a> |
								<a href="<%=basePath%>user/qiantanExit.shtml" target="_top"
									title="退出登录">退出登录</a>
							</div>
							<%
								}
							%>
							</td></tr>
							</table>
						</td>
						<td
							style="background: url(../resource/img/index/sh-3.jpg) no-repeat; height: 39px; width: 7px">&nbsp;</td>
					</tr>
				</table>
			</div>
<div id="header"><img src="<%=basePath%>${tgBrand.brandPic}" width="1000" height="280" /></div>
<div id="px1">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="10px">&nbsp;</td>
    <td width="190"><img onclick="join()" src="<%=basePath%>resource/img/goodBrand/1.jpg" width="183" height="34" border="0" style="cursor: pointer" usemap="#Map" /></td>
    
    <td>本月共有 <span style="font-size:16px; color:#F00; font-weight:700">${count}</span>人参加了 <span style="font-size:16px; color:#F00; font-weight:700">${tgBrand.name}</span> 的拼购！
    累计共有<span style="font-size:16px; color:#F00; font-weight:700"><s:property value="#counttotal"/></span>人参加了 <span style="font-size:16px; color:#F00; font-weight:700">${tgBrand.name}</span> 的拼购！
    </td>
  </tr>
</table>
</div>
<div id="px2">
<div id="divBlock_1">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000"  border="0" cellspacing="0" cellpadding="0">
  	<tr>
    <td width="50px" height="34" align="right">
      <div id="number_1" class="px-24px"></div></td>
    <td style="font-size:18px; color:#1b638d; font-family:'微软雅黑'">
    	<table width="100%"><tr><td align="left" style="color: #000000">了解&lt;<span>${tgBrand.name}</span>&gt;品牌</td><td align="right">
    	<div class="yahoo" id="meidTbar">
			<script>bulidPagnation(parseInt('<s:property value="#messagePu.totalRecords"/>',10),12,1,'${tgBrand.id}','',1,5)</script>
		</div>
		</td></tr></table>
    </td>
  </tr>
	</table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top" style="padding:10px">
      <div class="px1-1" id="meid" style="overflow: hidden;">
     				 <ul>
						<s:iterator value="#messagePu.list" var="mes">
							<li>
							<table border="0" width="100%" cellpadding="0" cellspacing="0" id="mes_title_<s:property value="id" />">
								<tr>
								<td>
								<input type="hidden" id="messagePufull" value="1"/>
								<a href="javascript:onopenMessage1('<s:property value="id" />')"><span style="font-size:14px; color:#069"><s:property value="titleSpe" escape="false" /></span></a></td>
								</tr>
							</table>
							<div style="display: none" id="mes_content_<s:property value="id" />">
								<table width="100%" cellpadding="0" cellspacing="0" border="0">
									<tr><td height="50px" valign="middle" class="info_title"><a name="sign_<s:property value="id" />"></a>
									【<s:property value='#mes.category == null?"品牌介绍":#mes.category' />】&nbsp;&nbsp;
									<s:property value="title" />&nbsp;&nbsp;
									<span id="hm_<s:property value="id" />" class="slideUp111" onclick="hideMessage1('<s:property value="id" />')">收起</span>&nbsp;&nbsp;
									<s:if test='%{recommend=="1"}'><img src="<%=basePath%>resource/img/index/index_recommend.jpg"/> </s:if>
									</td></tr>
									<tr>
										<td align="left">
											<div class="info_content" align="left"><hr/><span style="float:left"><s:property value="creatTimeFormat"/></span><br/><s:property value="content" escape="false" />
											</div>
										</td>
									</tr>
									<tr>
										<td height="20px">&nbsp;</td>
									</tr>
								</table>
							</div>
							</li>
						</s:iterator>
					 </ul>
		      </div>
		    </td>
		  </tr>
		</table>
		</div>
<div id="divBlock_2">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x;">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50px" height="34" align="right">
      <div id="number_2" class="px-24px"></div></td>
    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">&lt;<span>${tgBrand.name}</span>&gt;的店铺</td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
  <tr id="divBlock_2_img">
  	 <td width="940" align="left" valign="top">
    	<div class="r-tu" style="width: 998px;height:260px;z-index: 15">
				<div class='img-swith-main' style="width: 998px;height:260px;">
					<div class="img-switch">
						<ul id="IMG_UL_LIST_2">
							<s:iterator value="#imgInfoList">
								<li>
									<img src="<%=basePath%><s:property value="imgUrl"/>" width="998" />
								</li>
							</s:iterator>
						</ul>
					</div>
					<div class='img-switch-index'>
						<ul id="IMG_INDEX_UL_LIST_2">
							<s:iterator value="#imgInfoList" status="stat">
								<s:if test="#stat.index == 0">
									<li id="li_index_default2" style="background-color: #aaa;">
								</s:if>
								<s:else>
									<li>
								</s:else>
									0<s:property value="#stat.index+1" />
								</li>
							</s:iterator>
						</ul>
					</div>
					<div class='img-switch-clear'>
					</div>
				</div>
			</div>
    </td>
  </tr>
  <tr id="divBlock_2_content">
  	 <td width="940" align="left" valign="top" style="padding-left:30px; padding-right:30px; padding-top:15px; padding-bottom:10px; line-height:25px; font-size:14px">
   <!-- 店铺地址：${tgBrand.shopAddress} &nbsp; &nbsp; &nbsp; &nbsp;电话：${tgBrand.phone}<br/> -->${tgBrand.storeContent}
    </td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
<div id="divBlock_3">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50px" height="34" align="right">
      <div id="number_3" class="px-24px"></div></td>
    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">&lt;<span>${tgBrand.name}</span>&gt;的服务</td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="1000px" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
  
  <tr>
    <td width="940" align="left" valign="top" style="padding-left:30px; padding-right:30px; padding-top:15px; padding-bottom:10px; line-height:25px; font-size:14px" id="storeDescs">
    ${tgBrand.storeDesc}
    </td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
<div id="divBlock_4">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50px" height="34" align="right">
      <div id="number_4" class="px-24px"></div></td>
    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">&lt;<span>${tgBrand.name}</span>&gt;的优惠活动</td>
    <td>
    </td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="1000px" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
  <s:if test="#favorable.id!=null">
  <tr>
    <td width="998" height="215" > <a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=${favorable.id}&type=1">
      <img src="<%=basePath%>${favorable.imgSrc}" width="998" height="215" /></a>
    </td>
  </tr>
  </s:if>
  <tr>
    <td height="10px">&nbsp;</td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
<div id="divBlock_5">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50px" height="34" align="right">
      <div id="number_5" class="px-24px"></div></td>
    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">&lt;<span>${tgBrand.name}</span>&gt;的产品展示</td>
    <td>
    </td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top">
    <table width="1000px" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
  <s:if test="#goodsPu.list.size()<4&&#goodsPu.list.size()>0">
  <tr>
    <td width="1000" height="260" align="left" valign="top">
		   <table width="1000" border="0" cellspacing="0" cellpadding="0">
		    <tr>
		    <td width="45" height="260"></td>
		    <td width="910" align="left" valign="top">
		      <div class="px1-2" id="goods" style="height:260px">
		        <ul id="goodsul">
		         <s:iterator value="#goodsPu.list" status="stat" var="TgGoods">
		           <li>
		             <div class="px-tu1"><a target="_blank"  href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=3"><img src="<%=basePath%><s:property value="imgsrc"/>" width="204" height="226" /></a></div>
		            <div class="px-tu2"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=3"><s:property value="title"/></a></div>
		           </li>
		        </s:iterator>
		        </ul>
		      </div>
		      
		    </td>
		    <td width="45"></td>
		  </tr>
		  </table>
    </td>
  </tr>
  </s:if>
  <s:if test="#goodsPu.list.size()>4">
  <tr>
    <td width="1000" height="520" align="left" valign="top">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="45" height="520"><s:if test="#goodsPu.list.size()>5"><a href="javascript:good(${tgBrand.id},1)"><img src="<%=basePath%>resource/img/goodBrand/left.jpg" width="41" height="93" /></a></s:if></td>
    <td width="910" align="left" valign="top">
      <div class="px1-2" id="goods">
        <ul id="goodsul">
         <s:iterator value="#goodsPu.list" status="stat" var="TgGoods">
           <li>
             <div class="px-tu1"><a target="_blank"  href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=3"><img src="<%=basePath%><s:property value="imgsrc"/>" width="204" height="226" /></a></div>
            <div class="px-tu2"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=3"><s:property value="title"/></a></div>
           </li>
        </s:iterator>
        </ul>
      </div>
      
    </td>
    <td width="45"><s:if test="#goodsPu.list.size()>5"><a href="javascript:good(${tgBrand.id},2)"><img src="<%=basePath%>resource/img/goodBrand/right.jpg" width="41" height="93" /></a></s:if></td>
  </tr>
</table>

    </td>
  </tr>
 </s:if> 
  <tr>
    <td height="10px">&nbsp;</td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
<div id="divBlock_6">
<table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50px" height="34" align="right">
      <div id="number_6" class="px-24px"></div></td>
    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">&lt;<span>${tgBrand.name}</span>&gt;的客户案例</td>
    <td>
    </td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="1000px" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
    <s:if test="#bradlist.size()<4&&#bradlist.size()>0">
  <tr>
    <td width="1000" height="260" align="left" valign="top">
		   <table width="1000" border="0" cellspacing="0" cellpadding="0">
		    <tr>
		    <td width="45" height="260"></td>
		    <td width="910" align="left" valign="top">
		      <div class="px1-3" id="brad" style="height:260px">
		        <ul >
		        <s:iterator value="#bradlist" status="stat" var="TgStore">
		           <li>
		            <div class="px1-tu1"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=2"><img src="<%=basePath%><s:property value="imgSrc"/>" width="267" height="198" /></a></div>
		            <div class="px1-tu2"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=2"><s:property value="title"/></a></div>
		           </li>
		        </s:iterator>
		        </ul>
		      </div>
		    </td>
		    <td width="45"></td>
		  </tr>
		  </table>
    </td>
  </tr>
  </s:if>
   <s:if test="#bradlist.size()>3">
  <tr>
    <td width="1000" height="520">
    
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="45" height="510"><s:if test="#bradlist.size()>5"><a href="javascript:brad(${tgBrand.id},1)"><img src="<%=basePath%>resource/img/goodBrand/left.jpg" width="41" height="93" /></a></s:if></td>
    <td width="910" align="left" valign="top">
      <div class="px1-3" id="brad" >
        <ul>
        <s:iterator value="#bradlist" status="stat" var="TgStore">
           <li>
            <div class="px1-tu1"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=2"><img src="<%=basePath%><s:property value="imgSrc"/>" width="267" height="198" /></a></div>
            <div class="px1-tu2"><a target="_blank" href="<%=basePath%>brand/activityandcase.shtml?id=<s:property value="id"/>&type=2"><s:property value="title"/></a></div>
           </li>
        </s:iterator>
        </ul>
      </div>
    </td>
    <td width="45"><s:if test="#bradlist.size()>5"><a href="javascript:brad(${tgBrand.id},2)"><img src="<%=basePath%>resource/img/goodBrand/right.jpg" width="41" height="93" /></a></s:if></td>
  </tr>
</table>
    </td>
  </tr>
  </s:if>
  <tr>
    <td height="10px">&nbsp;</td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
</div>
</div>
<div id="divBlock_7">
<table width="1000px" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="34px" style="background:url(<%=basePath%>resource/img/goodBrand/t1.jpg) repeat-x">
    <table width="1000" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td width="50px" height="34" align="right">
	      <div id="number_7" class="px-24px"></div></td>
	    <td style="font-size:18px; color:#000000; font-family:'微软雅黑'">点评口碑</td>
	    <td>
	    <div class="yahoo" id="meidTbar1">
			<script>bulidPagnation1(parseInt('<s:property value="#pjPu.totalRecords"/>',10),12,1,'${tgBrand.id}','meidTbar1',1,5)</script>
		</div>
	    </td>
	  </tr>
	</table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="1000px" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="10px"></td>
  </tr>
  <tr>
    <td width="940" style="padding-left:30px; padding-right:30px; padding-top:10px; padding-bottom:10px">
    
      <div class="px1-4" id="evaluateContent">
        <ul>
        <s:iterator value="#pjPu.list" status="stat" var="TgPingJia">
          <li>
	          <table width="940" border="0" cellspacing="0" cellpadding="0">
				  <tr>
				    <td width="65" align="center" valign="top" style="line-height:24px"><img src="<%=basePath%>resource/img/goodBrand/3<s:property value="sex"/>.jpg" width="23" height="22" /><br />
				      <s:property value="username"/></td>
				    <td width="5">&nbsp;</td>
				    <td width="870" align="left" valign="top">
				      <div class="px1-4-1"><s:property value="title"/></div>
				      <div class="px1-4-2"><s:property value="content" escape="false"/>&nbsp;&nbsp;(评论时间:<s:property value="createTimeStr"/>)  <s:if test="reply == null&&#session.userinfo.id == #tgBrand.sysuserId">&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:showReplyArea('<s:property value="id"/>')">商家回复</a></s:if></div>
				      <s:if test="reply != null">
				      <div class="px1-4-3">
				        <table width="" border="0" cellspacing="0" cellpadding="0">
				          <tr  >
				            <td width="8px" height="6px"  style="background:url(<%=basePath%>resource/img/goodBrand/71.jpg); "></td>
				            <td   height="6px" style="background:url(<%=basePath%>resource/img/goodBrand/72.jpg);"></td>
				            <td width="8px"  height="6px"  style="background:url(<%=basePath%>resource/img/goodBrand/73.jpg); "></td>
				          </tr>
				          <tr>
				            <td width="8px"  style="background:url(<%=basePath%>resource/img/goodBrand/81.jpg); position:relative; ">&nbsp;</td>
				            <td  style="background:url(<%=basePath%>resource/img/goodBrand/82.jpg); position:relative;color:#1b638d;line-height: 17px;"><span>${tgBrand.name}</span>回复： <s:property value="reply"/></td>
				            <td width="8px"  style="background:url(<%=basePath%>resource/img/goodBrand/83.jpg); position:relative;">&nbsp;</td>
				          </tr>
				          <tr>
				            <td width="8px" height="7px"  style="background:url(<%=basePath%>resource/img/goodBrand/91.jpg);  "></td>
				            <td  height="7px" style="background:url(<%=basePath%>resource/img/goodBrand/92.jpg);"></td>
				            <td width="8px"  height="7px" style="background:url(<%=basePath%>resource/img/goodBrand/93.jpg); "></td>
				          </tr>
				        </table>
				      </div>
				      </s:if>
				      <s:elseif test="%{#session.userinfo.id == #tgBrand.sysuserId}">
				      		<table width="" border="0" cellspacing="0" cellpadding="0" style="display: none" id="replyArea_<s:property value="id"/>">
				          <tr>
				            <td width="" style="background:url(<%=basePath%>resource/img/goodBrand/5.jpg) repeat-x; color:#1b638d"><textarea id="reply_<s:property value="id"/>" style="width: 500px;" rows="3"></textarea></td>
				         	<td valign="bottom">&nbsp;&nbsp;<input onclick="reply('<s:property value="id"/>')" value="提交回复" type="button"/>&nbsp;&nbsp;<input type="button" value="关闭" onclick="hideReplyArea('<s:property value="id"/>')"/></td>
				          </tr>
				        </table>
				      </s:elseif>
				    </td>
				  </tr>
	         </table>
         </li>
		</s:iterator>
        </ul>
      </div>
      
    </td>
  </tr>
  <tr>
    <td height="10px">&nbsp;</td>
  </tr>
</table>
    </td>
  </tr>
</table>
</div>
<iframe name="joinFrame" id="joinFrame" src="" style="display: none"></iframe>
<iframe name="pingjiaFrame" id="pingjiaFrame" src="" style="display: none"></iframe>
<div id="evaluate" style="position: absolute;z-index: 10;right: 0px;top: 200px;width: 72px;">
<img onclick="showEvaluate()" title="评价" width="72px" src="<%=basePath %>resource/img/brand/evaluate.png" style="cursor: pointer;"/>
</div>
	<iframe src="../index/footer.html" frameborder="0" scrolling="no"
			width="100%" ; height="90px;"></iframe>
</body>
<script>
if ('<s:property value="#messagePu.list.size"/>' == '0') {
		if ('<s:property value="#message1List.size"/>' == '0')
			if ('<s:property value="#message2List.size"/>' == '0')
				if ('<s:property value="#message3List.size"/>' == '0')
					$("#divBlock_1").hide();
	} else {
		$("#divBlock_1").show();
		numInt++;
		$("#number_1").html(numInt);
	}
	if(('<s:property value="#imgInfoList"/>' == ''
			|| '<s:property value="#imgInfoList.size"/>' == '0')&&('${tgBrandflag}'!='1')){
		$("#divBlock_2").hide();
	}else if('<s:property value="#imgInfoList"/>' == ''
			|| '<s:property value="#imgInfoList.size"/>' == '0'){
		$("#divBlock_2_img").hide();
		$("#divBlock_2_content").show();
		numInt++;
		$("#divBlock_2").show();
		$("#number_2").html(numInt);
	}else if('${tgBrandflag}'!='1'){
		$("#divBlock_2_content").hide();
		$("#divBlock_2_img").show();
		numInt++;
		$("#divBlock_2").show();
		$("#number_2").html(numInt);
	}else{
		numInt++;
		$("#divBlock_2").show();
		$("#number_2").html(numInt);
	}
	
/*	if ('<s:property value="#imgInfoList"/>' == ''
			|| '<s:property value="#imgInfoList.size"/>' == '0') {
		$("#divBlock_2").hide();
	} else {
		$("#divBlock_2").show();
		numInt++;
		$("#number_2").html(numInt);
	}*/
	if ($("#storeDescs").html().replace(/(\s*)/g, "") == '') {
		$("#divBlock_3").hide();
	} else {
		$("#divBlock_3").show();
		numInt++;
		$("#number_3").html(numInt);
	}
	if ('${favorable.id}' == null || '${favorable.id}' == '') {
		$("#divBlock_4").hide();
	} else {
		$("#divBlock_4").show();
		numInt++;
		$("#number_4").html(numInt);
	}
	if ('<s:property value="#goodsPu.list.size"/>' == '0') {
		$("#divBlock_5").hide();
	} else {
		$("#divBlock_5").show();
		numInt++;
		$("#number_5").html(numInt);
	}
	if ('<s:property value="#bradlist.size"/>' == '0') {
		$("#divBlock_6").hide();
	} else {
		$("#divBlock_6").show();
		numInt++;
		$("#number_6").html(numInt);
	}
	if ('<s:property value="#pjPu.list.size"/>' == '0') {
		$("#divBlock_7").hide();
	} else {
		$("#divBlock_7").show();
		numInt++;
		$("#number_7").html(numInt);
	}
	var brandName = '${tgBrand.name}';
	var joinPingouFlag = '<s:property value="#joinPingouFlag"/>'
	var yeid =  userid;
	var yetype = userType;
	var joinFlag = '<s:property value="#joinFlag"/>';
	var isPingjia = '<s:property value="#isPingjia"/>';
	var loginuserId = '<s:property value="#session.userinfo.id"/>';
	var shangjiaId = '<s:property value="#tgBrand.sysuserId"/>';
</script>
</html>
